export interface IPlayer {
    id: number,
    nickName: string,
    rid: number,
    ready: number,
}
export interface IRoom {
    rid: number,
    players: IPlayer[],
    isGaming: boolean,
}

export interface IApiLoginReq {
    nickName: string
}
export interface IApiLoginRes {
    player: IPlayer
    isOfflineConnection?: boolean
}

export interface IApiRoomListReq {
}
export interface IApiRoomListRes {
    rooms: IRoom[]
}

export interface IApiRoomCreateReq {
}
export interface IApiRoomCreateRes {
    room: IRoom
}

export interface IApiRoomJoinReq {
    rid: number
}
export interface IApiRoomJoinRes {
    room: IRoom
}

export interface IApiRoomLeaveReq {
}
export interface IApiRoomLeaveRes {
}

export interface IApiPlayerReadyReq {
}
export interface IApiPlayerReadyRes {
}

export interface IApiPlayerCancelReadyRes {
}
export interface IApiPlayerCancelReadyReq {
}

export interface IApiGameStartReq {
}
export interface IApiGameStartRes {
}

export interface IApiApplyOfflineLaunchReq {
}
export interface IApiApplyOfflineLaunchRes {
}

export interface IApiMidJoinGameReq {
}
export interface IApiMidJoinGameRes {
}

